package com.automobile.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.automobile.domain.MakeApp;
import com.automobile.service.MakeAppService;

@Controller
@RequestMapping("/makeApp")
public class MakeAppController {
	
	@Autowired
	private MakeAppService makeAppService;
	
	@RequestMapping("/save")
	public @ResponseBody Integer save(@RequestBody MakeApp makeApp) {
        System.out.println(makeApp);
        try {
            makeAppService.save(makeApp);
        } catch (Exception e) {
            e.printStackTrace();
        }
        return 1;
	}

}
